<script setup>
import {defineProps} from "vue"
import TipPopover from "@/components/TipPopover/index.vue"

const props = defineProps({
  title: String,
  label: String,
  tip: String
})
</script>

<template>
  <van-row>
    <van-col span="8">
      <slot name="left"></slot>
    </van-col>
    <van-col span="8">
      <div>
        <div class="title">{{title}}</div>
        <tip-popover name="info-o" v-if="tip"></tip-popover>
      </div>
      <div>{{label}}</div>
    </van-col>
    <van-col span="8">
      <slot name="right"></slot>
    </van-col>
  </van-row>
</template>

<style scoped lang="scss">
:deep(.van-col) {
  text-align: center;

  .title {
    font-size: 16px;
    font-weight: bold;
    color: #333;
  }
}
</style>